package com.atnjupt.controller.utils;

import lombok.Data;

/**
 * 后端到前端的数据格式定义
 */
@Data
public class Result {
    private Boolean flag;
    private Object data;
    private String msg;
    public Result(){

    }
    public Result(Boolean flag){
        this.flag = flag;
    }
    public Result(String msg){
        this.msg = msg;
    }
    public Result(Boolean flag,Object data){
        this.flag = flag;
        this.data = data;
    }
    public Result(Boolean flag,String msg){
        this.flag = flag;
        this.msg = msg;
    }

}
